package com.polaris.live.adapter.live

import android.view.View
import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.AdapterRoomEndBinding
import com.polaris.live.resp.bean.CallEndBeansBean

/**
 * GainCallEndAdapter
 *
 * @author Created by 半仙 on 2024/4/24/024 14:29
 */
class RoomEndAdapter : BaseBindingAdapter<AdapterRoomEndBinding, CallEndBeansBean>() {

    override fun convert(holder: VBViewHolder<AdapterRoomEndBinding>, item: CallEndBeansBean) {
        holder.vb.apply {
            itemGainName.text = item.name
            itemGainValues.text = item.values
            if (item.needShowBeans) {
                itemGainImg.visibility = View.VISIBLE
            } else {
                itemGainImg.visibility = View.GONE
            }
        }
    }

}